package com.yunhe.option.service.base.impl;

import com.yunhe.option.domain.base.PriceRate;
import com.yunhe.option.repository.base.PriceRateRepository;
import com.yunhe.option.service.base.PriceRateService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

@Service
public class PriceRateServiceImpl implements PriceRateService {
    @Autowired
    private PriceRateRepository priceRateRepository;

    /**
     * 根据条件查找电价费率
     * @param costPriceId
     * @return
     */
    @Transactional
    @Override
    public Iterable<PriceRate> search(Long costPriceId) {
        if(costPriceId != null){

        }
        return priceRateRepository.findAll();
    }
}
